package com.ts.conch.auth.exception;

import lombok.Data;

/**
 * @ClassName: BusinessException
 * @Decription: 此处填写类文件说明
 * @Author: IDai
 * @Date: 2021-09-15 11:51 星期三
 **/
@Data
public class BusinessException extends RuntimeException{
    private static final long serialVersionUID = 1L;

    private String msg;
    private int code = 500;

    public BusinessException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public BusinessException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }

    public BusinessException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public BusinessException(String msg, int code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code = code;
    }
}
